home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Makefiles / lib / Makefile.all next >
Encoding:
Makefile  |  1994-10-16  |  1.5 KB  |  59 lines

  1. # Makefile.all
  2. #
  3. # by Mike Ferris
  4. # Part of MOKit
  5. # Copyright 1993, all rights reserved
  6. #
  7. # Used in the MiscKit by permission.
  8. #
  9. # This is based on Next's standard library make architecture
  10.  
  11. ##################### Rules to make the whole library #####################
  12.  
  13. # making the name of the lib should cause all to be made
  14. $(NAME): all
  15.  
  16. all:: $(SYMROOT) $(OBJROOT)
  17.  
  18. # makes the product
  19. $(PRODUCT): ofiles $(SYMROOT) $(OBJROOT)
  20.     $(ARCHIVER) $(SYMROOT)/$(PRODUCT) $(OFILES)
  21.     $(RANLIB) $(RANLIBFLAGS) $(SYMROOT)/$(PRODUCT)
  22.  
  23. optimized:: $(SYMROOT) $(OBJROOT)
  24.     @$(ECHO) '************ $(NAME) Optimized library ************'
  25.     @$(MAKE) $(OPT_LIB) \
  26.         "PRODUCT = $(OPT_LIB)" \
  27.         "OFILE_DIR = $(OBJROOT)/$(OPT_OBJ)" \
  28.         "SYM_DIR = $(SYMROOT)/sym" \
  29.         "OBJROOT = $(OBJROOT)" \
  30.         "SYMROOT = $(SYMROOT)" \
  31.         "CFLAGS = $(OPTCFLAGS)"
  32.  
  33. debug:: $(SYMROOT) $(OBJROOT)
  34.     @$(ECHO) '************ $(NAME) Debug library ************'
  35.     @$(MAKE) $(DEBUG_LIB) \
  36.         "PRODUCT = $(DEBUG_LIB)" \
  37.         "OFILE_DIR = $(OBJROOT)/$(DEBUG_OBJ)" \
  38.         "SYM_DIR = $(SYMROOT)/sym" \
  39.         "OBJROOT = $(OBJROOT)" \
  40.         "SYMROOT = $(SYMROOT)" \
  41.         "CFLAGS = $(DEBUGCFLAGS)"
  42.  
  43. profile:: $(SYMROOT) $(OBJROOT)
  44.     @$(ECHO) '************ $(NAME) Profile library ************'
  45.     @$(MAKE) $(PROFILE_LIB) \
  46.         "PRODUCT = $(PROFILE_LIB)" \
  47.         "OFILE_DIR = $(OBJROOT)/$(PROFILE_OBJ)" \
  48.         "SYM_DIR = $(SYMROOT)/sym" \
  49.         "OBJROOT = $(OBJROOT)" \
  50.         "SYMROOT = $(SYMROOT)" \
  51.         "CFLAGS = $(PROFCFLAGS)"
  52.  
  53. $(SYMROOT) $(OBJROOT)::
  54.     @if [ ! -d $@ ] ; then \
  55.         $(ECHO) $(MKDIRS) $(MKDIRSFLAGS) $@ ; \
  56.         $(MKDIRS) $(MKDIRSFLAGS) $@ ; \
  57.     fi
  58.  
  59.